class CreateFees< ActiveRecord::Migration
  def self.up
    create_table :fees do |t|
      t.integer :course_id
      t.integer :student_id
      t.integer :teacher_id
      t.date :paydate
      t.integer :amount
      t.decimal :fee
      t.text :comment
      t.string :description
      t.string :type, :limit => 25
      t.integer :resrouce_id 
      t.integer :paytype
      t.timestamps
    end
  end

  def self.down
    drop_table :payments
  end
end
